package com.lhc.nacosprovider.service;

import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lhc.nacosprovider.entity.Menu;


import java.util.List;

/**
 * @author liuchaoqun
 * @date 2022/6/17
 * @Description 菜单service
 */
public interface MenuService extends IService<Menu> {

    /**
    * @description: 获取所有的菜单
    * @param
    * @author liuchaoqun
    * @date: 2022/6/17 19:18
    */
    List<Menu> allMenus();

    /**
    * @description: 生成树
    * @param
    * @author liuchaoqun
    * @date: 2022/6/17 22:31
    */
    List<Tree<String>> getTreeNode();

    /**
    * @description: 创建订单
    * @param id
    * @author liuchaoqun
    * @date: 2022/6/18 18:16
    */
    String create(Long id);
}
